﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Staff
{
    class Program
    {
        static void Main(string[] args)
        {
            //            定义一个员工类，存放用户的工号、姓名、性别、学历和部门信息；
            //定义两个构造函数:
            //            一个是无参构造函数，学历默认为专科；
            //一个有参构造函数，根据参数对类的属性进行初始化。
            //有参构造
            Staff staff = new Staff(1, "王五","男","专科","前端");
            staff.Print();
            //无参构造
            Staff staff1 = new Staff();
            staff1.id = 2;
            staff1.name = "张三";
            staff1.sex = "男";
            
            Staff.Education = "专科";
            staff1.department = "前端";
            staff1.Print1();
            Staff.EduPrint();


























            Console.ReadKey();
        }
    }
}
